Apparently not actually emitting the calls to trace! saves a good deal of stack
space, fixing the overflow found in #1875.
Closes #1875
mod encode;
+macro_rules! trace {
+ ($($e:tt)*) => (
+ if cfg!(debug_assertions) {
+ debug!($($e)*);
+ }
+ )
+}
+
/// Represents a fully resolved package dependency graph. Each node in the graph
/// is a package and edges represent dependencies between packages.
///
cx.visited.remove(id);
return finished(cx, registry)
}
- debug!("activating {}", parent.package_id());
+ trace!("activating {}", parent.package_id());
let deps = try!(cx.build_deps(registry, parent, method));